<!--
 * @Description: confirm demom
 * @Autor: dengyongliang
 * @Date: 2021-04-17 10:11:34
 * @LastEditors: dengyongliang
 * @LastEditTime: 2021-08-16 13:38:33
-->
<template>
  <div style="padding: 20px">
    <el-button @click="open">点击确认</el-button>
  </div>
</template>

<script>
export default {
  name: 'DemoStep',
  components: {},
  directives: {},
  props: [],
  data() {
    return {}
  },
  mounted() {},
  methods: {
    open() {
      this.$siConfirm('确定退出？')
        .then(() => {
          // 确定
          setTimeout(() => {
            this.$siLoading().close()
          }, 3000)
        })
        .catch(() => {
          // 取消
        })
    }
  }
}
</script>

<style lang="scss" scoped></style>
